target=test

src=$(wildcard ./*.cpp)
objs=$(patsubst %.cpp,%.o,$(src))

%.o:%.cpp
	g++ -g -c $< -I./

${target}:${objs}
	g++ -o $@ ${objs} -lpthread -std=c++11

clean:
	rm ./*.o
	rm ./test
